From 4c3a829bb6f45ae054e73b0af6f01b3191d6026f Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 15 Jun 2010 23:24:34 +0200 Subject: [PATCH] configure.ac: Fix build if no XInput libraries are available. --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8db352d2f1..7f95a562a9 100644 --- a/configure.ac +++ b/configure.ac @@ -1562,6 +1562,8 @@ if test "x$gdktarget" = "xx11"; then # set up things for XInput if test "x$with_xinput" != "xno" && $PKG_CONFIG --exists "xi" ; then + have_xinput=yes + AC_DEFINE(XINPUT_XFREE, 1, [Define to 1 if XFree XInput should be used]) @@ -1574,7 +1576,7 @@ if test "x$gdktarget" = "xx11"; then [Define to 1 if no XInput should be used]) fi - AM_CONDITIONAL(XINPUT_XFREE, test "x$with_xinput" != "xno") + AM_CONDITIONAL(XINPUT_XFREE, test "x$have_xinput" = "xyes") AM_CONDITIONAL(XINPUT_2, test "x$have_xinput2" = "xyes") # Check for the RANDR extension -- 2.30.2